import request from '@/utils/request'

// 查询可借阅书籍列表
export function listBookBorrow(query) {
  return request({
    url: '/book/borrow',
    method: 'get',
    params: query
  })
}

// 查询单书详细
export function getBookBorrow(id) {
  return request({
    url: '/book/borrow/' + id,
    method: 'get'
  })
}

// 书本借阅处理
export function insertBookBorrow(num) {
  return request({
    url: '/book/borrow/' + num,
    method: 'post'
  })
}
